home *** CD-ROM | disk | FTP | other *** search
- /*-----------
- | Header für:
- | tools.c
- -------------*/
-
- #if !defined( __TOOLS__ )
- #define __TOOLS__
-
- /*-----------
- | Prototypen:
- -------------*/
- int get_options( int argc, char **argv);
- int get_index( char *p );
- void *get_number( char *);
- void *get_string( char *);
- void *get_nothing( char *);
-
- void *load_file(char *pfad, char *name, char *mode);
- void unload_file(char *p);
- FILE *open_file( char *pfad, char *name, const char *mode);
- int close_file(FILE *fp);
-
- long fsize(FILE *fp);
-
- char *set_path(char *dir);
- char *get_path(char *);
- int get_pn( char *p, char *n, char *inp);
- char *get_name( char *p);
- int get_drv( void );
- long set_drv( int drv );
- int set_dir( char *p );
- int set_dir( char *p );
- int get_dir( char *p, int drv);
-
-
-
-
- /*--------------------------------------------
- | option: Zeigt auf Eingabe-String
- | function: liest Parameter ein.
- | value : Enthält Wert (value <= long)
- | oder Zeiger auf Wert (string ...)
- ---------------------------------------------*/
- typedef struct{ char *option;
- void *(*function)( char * );
- void *value;
- int valid;
- }opt_list;
-
-
- /*-------------------------
- | Öffentliches aus tools.c:
- ---------------------------*/
- extern long act_fil_sz;
-
-
- /*------------------------------------
- | Muß im lokalen Text definiert werden
- --------------------------------------*/
- extern opt_list liste[];
-
-
- #if !defined FALSE
- #define FALSE 0
- #define TRUE ~FALSE
- #endif
-
- #endif
-